﻿
namespace ParaEditor.DomainSource.Entities
{
    public class IncomeProportionPk
    {
        public virtual int algVer { get; set; }
        public virtual int OId { get; set; }
        public virtual int DId { get; set; }
        /// <summary>
        /// 用作票价
        /// </summary>
        public virtual int lineId { get; set; }
        /// <summary>
        /// 用作收益方数量
        /// </summary>
        public virtual int ownerId { get; set; }
        public virtual int incomeProportion { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is IncomeProportionPk)
            {
                IncomeProportionPk pk = obj as IncomeProportionPk;
                if (this.algVer == pk.algVer
                     && this.OId == pk.OId 
                     && this.DId == pk.DId 
                     && this.lineId == pk.lineId 
                     && this.ownerId == pk.ownerId 
                     && this.incomeProportion == pk.incomeProportion)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
